package com.jrzh.db.migration.sys;

import com.jrzh.framework.migration.BaseMigration;
import com.jrzh.framework.migration.MigrationHelper;

/**
 * 创建文件编码规则表
 * @author Xanthin
 *
 */
public class Migration_18 extends BaseMigration {
	private final static String TABLE_NAME="sys_file_rules";
	
	@Override
	public void down() {
		MigrationHelper.dropTable(TABLE_NAME);
	}

	@Override
	public void up() {
		log.info("##########执行Sys模块 Migration_18##########Begin");
		table(TABLE_NAME, "文件编码规则表", true,
				pk(),
				jrVarchar("_key", "键", 128),
				jrVarchar("_name", "名称", 512)
		);
		log.info("##########执行Sys模块 Migration_18##########Begin");
	}
}
